.chatContainer {
  position: relative;
  width: 100%;
  height: 330px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: rgb(241, 243, 249);
}
.chatTitle {
  width: 100%;
  height: 46px;
  line-height: 48px;
  border-bottom: 1px solid #ccc;
  padding-left: 20px;
  text-align: left;
  box-sizing: border-box;
  .chatName {
    font-size: 14px;
    font-weight: 550;
    color: rgb(68, 78, 89);
  }
  .status {
    float: left;
  }
  .online {
    font-size: 10px;
    color: rgb(153, 168, 180);
    .light {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin: 0 4px 0 20px;
    }
    .onlineColor {
      background-color: #52C41A;
    }
  }
  .right {
    float: right;
    font-size: 16px;
    margin-right: 20px;
    color:rgb(100, 105, 109);
    cursor: pointer;
  } 
}

.chatMain {
  width: 100%;
  height: 242px;
  box-sizing: border-box;
  background-color: rgb(241, 243, 249);
  text-align: left;
  font-size: 12px;
  overflow: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  &::-webkit-scrollbar { width: 0 !important; } // chrome 和Safari 滚动条
  padding: 20px 20px 0;
  .chatMessage {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    li {
      min-height: 30px;
      line-height: 40px;
      margin-bottom: 20px;
      .messageLine {
        width: 100%;
        height: 100%;
        .portrait {
          float: left;
          width: 30px;
          height: 30px;
          border-radius: 50%;
          overflow: hidden;
        }
        .portrait_player {
          float: right;
          width: 30px;
          height: 30px;
          border-radius: 50%;
          overflow: hidden;
        }
        .messageLine_context {
          position: relative;
          float: left;
          margin-left: 20px;
          padding: 2px 14px;
          max-width: 150px;
          line-height: 26px;
          min-height: 30px;
          border-radius: 4px;
          border: 1px solid rgb(228, 226, 226);
          background-color: #fff;
          color: rgb(73, 73, 73);
        }
        .messageLine_context::before {
          content:"";
          position:absolute;
          left:-12px;  // 请按照实际位置修改
          top:8px; // 请按照实际位置修改
          width:0;
          height:0;
          overflow:hidden;
          font-size:0;
          line-height:0;
          border-width:6px;
          border-style:solid dashed dashed dashed;
          border-color: transparent rgb(228, 226, 226) transparent transparent;
          z-index: 1;
        }
        .messageLine_context::after {
          content:"";
          position:absolute;
          left:-10px;  // 请按照实际位置修改
          top:9px; // 请按照实际位置修改
          width:0;
          height:0;
          overflow:hidden;
          font-size:0;
          line-height:0;
          border-width:5px;
          border-style:solid dashed dashed dashed;
          border-color: transparent #fff transparent transparent;
          z-index: 2;
        }
        .messageLine_context_player {
          position: relative;
          float: right;
          margin-right: 20px;
          padding: 2px 14px;
          max-width: 150px;
          line-height: 26px;
          min-height: 30px;
          border-radius: 4px;
          border: 1px solid rgb(228, 226, 226);
          background-color: #7ecef4;
          color: rgb(247, 245, 245);
        }
        .messageLine_context_player::before {
          content:"";
          position:absolute;
          right:-12px;  // 请按照实际位置修改
          top:8px; // 请按照实际位置修改
          width:0;
          height:0;
          overflow:hidden;
          font-size:0;
          line-height:0;
          border-width:6px;
          border-style:solid dashed dashed dashed;
          border-color: transparent  transparent transparent rgb(228, 226, 226);
          z-index: 1;
        }
        .messageLine_context_player::after {
          content:"";
          position:absolute;
          right:-10px;  // 请按照实际位置修改
          top:9px; // 请按照实际位置修改
          width:0;
          height:0;
          overflow:hidden;
          font-size:0;
          line-height:0;
          border-width:5px;
          border-style:solid dashed dashed dashed;
          border-color: transparent  transparent transparent #7ecef4; 
          z-index: 2;
        }
        .clear{
          clear:both;
        } 
      }
    }
  }
}

.chatSend {
  position:absolute;
  left:0;
  bottom:0;
  width: 100%;
  line-height: 30px;
  padding: 0 10px;
  background-color:#fff;
  text-align: left;
  box-sizing: border-box;
  z-index: 999;
  .expression {
    margin-left:2px;
    font-size: 18px;
  }
  .pic {
    margin-left:20px;
    font-size: 20px;
  }
  .placeholderDiv {
    display: inline-block;
    margin-left:20px;
    width: 220px;
    padding: 5px 2px;
    max-height: 160px;
    transform: translateY(6px);
    color: rgb(73, 73, 73);
    border: 0px;
    // outline: 1px solid #7ecef4;
    font-size: 14px;
    // word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 20px;
    cursor:text;
    &:empty::before{
      content:attr(placeholder);
      color:lightgrey;
    }
    // &:focus::before{
    //   content:none;
    // }
  }
  .send {
    margin-left:10px;
    font-size: 18px;
    color:#7ecef4;
    cursor: pointer;
  }
}
